package com.vvlive.caibao.smartcity.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by zhj on 2015/9/7.
 */
public class MeetingRoom implements Parcelable {

    private String roomid;
    private String room;
    private String deptid;

    public MeetingRoom() {
    }

    public MeetingRoom(String roomid, String room, String deptid) {
        this.roomid = roomid;
        this.room = room;
        this.deptid = deptid;
    }

    protected MeetingRoom(Parcel in) {
        roomid = in.readString();
        room = in.readString();
        deptid = in.readString();
    }

    public static final Creator<MeetingRoom> CREATOR = new Creator<MeetingRoom>() {
        @Override
        public MeetingRoom createFromParcel(Parcel in) {
            return new MeetingRoom(in);
        }

        @Override
        public MeetingRoom[] newArray(int size) {
            return new MeetingRoom[size];
        }
    };

    public String getRoomid() {
        return roomid;
    }

    public void setRoomid(String roomid) {
        this.roomid = roomid;
    }

    public String getRoom() {
        return room;
    }

    public void setRoom(String room) {
        this.room = room;
    }

    public String getDeptid() {
        return deptid;
    }

    public void setDeptid(String deptid) {
        this.deptid = deptid;
    }

    @Override
    public String toString() {
        return "MeetingRoom{" +
                "roomid='" + roomid + '\'' +
                ", room='" + room + '\'' +
                ", deptid='" + deptid + '\'' +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(roomid);
        dest.writeString(room);
        dest.writeString(deptid);
    }
}
